home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / gnuchess.zip / ZORMAKE < prev   
Text File  |  1990-08-10  |  3KB  |  89 lines

  1. # makefile.dos -  Makefile for CHESS (MS-DOS Version)
  2. # Tailored for Zortech C compiler by Truman Collins
  3. #       tcollins@pdx.mentor.com
  4. #       CIS : 71121,3343
  5. # Copyright (C) 1990 by Thorsten Ohl, td12@ddagsi3.bitnet
  6. # Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  7. #
  8. # This makefile will NOT work with Microsoft's make.
  9. # Use a **IX compatible make instead.
  10. #
  11. # This file is not yet part of CHESS.
  12. #
  13. # CHESS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY.  No author or distributor
  15. # accepts responsibility to anyone for the consequences of using it
  16. # or for whether it serves any particular purpose or works at all,
  17. # unless he says so in writing.  Refer to the CHESS General Public
  18. # License for full details.
  19. #
  20. # Everyone is granted permission to copy, modify and redistribute
  21. # CHESS, but only under the conditions described in the
  22. # CHESS General Public License.   A copy of this license is
  23. # supposed to have been given to you along with CHESS so you
  24. # can know your rights and responsibilities.  It should be in a
  25. # file named COPYING.  Among other things, the copyright notice
  26. # and this notice must be preserved on all copies.
  27.  
  28. # gnuchess  will be the curses-based chess.
  29. # gnuchessn will be the fancy-display-curses-based chess.
  30. # gnuchessr will be the xchess/chesstool based chess.
  31. #               (/usr/games/chesstool gnuchessr)
  32. #    for use with SUN's chesstool and X-window's xchess.
  33. #    To use with latter, add -DCHESSTOOL to the nondsp.o
  34. #    compilation lines (e.g. cc -O -DCHESSTOOL ...)
  35. # If you want to use the persistent transpositon table add
  36. # -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  37. # to the gnuchess.o compilation line. You also have to run gnuchess -t
  38. # To actually create the file. -t can also be used to report
  39. # statistics about the file or to resize it.
  40.  
  41. # if you don't want the IBM PC's graphic characters, add -DSEVENBIT
  42.  
  43. CC      =ztc
  44. BINDIR  =.
  45. LIBDIR  =.
  46. HASH    =-DHASHFILE="$(LIBDIR)\gnuchess.has"
  47. BOOK    =-DBOOK="$(LIBDIR)\gnuchess.boo"
  48. CFLAGS  = -mci -b -DMSDOS
  49.  
  50. sources = zgnuchss.c gnuchess.d gnuchess.h uxdsp.c nuxdsp.c nondsp.c version.h
  51.  
  52. # Commands
  53. all : gnuchess gnuchesr gnucheso gnuan
  54.  
  55. gnuchess : gnuchess.obj nuxdsp.obj
  56.         $(CC) $(CFLAGS) nuxdsp.obj gnuchess.obj -ognuchess
  57.  
  58. gnuchesr : gnuchess.obj nondsp.obj
  59.         $(CC) $(CFLAGS) gnuchess.obj nondsp.obj -ognuchesr
  60.  
  61. gnucheso : gnuchess.obj uxdsp.obj
  62.         $(CC) $(CFLAGS) gnuchess.obj uxdsp.obj -ognucheso
  63.  
  64. gnuan : gnuan.obj gnuchess.obj
  65.         $(CC) -mc -b -DMSDOS gnuchess.obj gnuan.obj -ognuan
  66.  
  67. gnuchess.obj: zgnuchss.c gnuchess.h
  68.         $(CC) $(CFLAGS) $(BOOK) -c zgnuchss.c -ognuchess
  69.  
  70. uxdsp.obj: uxdsp.c gnuchess.h
  71.         $(CC) $(CFLAGS) -c uxdsp.c
  72.  
  73. nuxdsp.obj: nuxdsp.c gnuchess.h
  74.         $(CC) $(CFLAGS) -c nuxdsp.c
  75.  
  76. nondsp.obj: nondsp.c gnuchess.h
  77.         $(CC) $(CFLAGS) -c nondsp.c
  78.  
  79. gnuan.obj: gnuan.c gnuchess.h
  80.         $(CC) $(CFLAGS) -c gnuan.c
  81.  
  82.  
  83. # Utilities
  84.  
  85. clean:
  86.         del *.obj
  87.         del *.bak
  88.  
  89.